package com.ruoyi.duty.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 涉毒排查业务对象 duty_sdpc
 *
 * @author xiaohao
 * @date 2023-01-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DutySdpcBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long sdpcId;

    /**
     * 排查时间
     */
    @NotNull(message = "排查时间不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pxsj;

    /**
     * 排查类型
     */
    @NotBlank(message = "排查类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String pclx;

    /**
     * 排查单位
     */
    @NotBlank(message = "排查单位不能为空", groups = {AddGroup.class, EditGroup.class})
    private String pcdw;

    /**
     * 排查人员
     */
    @NotBlank(message = "排查人员不能为空", groups = {AddGroup.class, EditGroup.class})
    private String pcry;

    /**
     * 排查带队人员
     */
    @NotBlank(message = "排查带队人员不能为空", groups = {AddGroup.class, EditGroup.class})
    private String pcddry;

    /**
     * 排查地点
     */
    @NotBlank(message = "排查地点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 上报单位
     */
    @NotBlank(message = "上报单位不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sbdw;

    /**
     * 排查结果
     */
    @NotBlank(message = "排查结果不能为空", groups = {AddGroup.class, EditGroup.class})
    private String reult;

    /**
     * 排查详情
     */
    @NotBlank(message = "排查详情不能为空", groups = {AddGroup.class, EditGroup.class})
    private String detail;

    /**
     * 上传图片
     */
    @NotBlank(message = "上传图片不能为空", groups = {AddGroup.class, EditGroup.class})
    private String images;


}
